import { defHttp } from '/@/utils/http/axios';
import { OrderPageParams, OrderTaskParams } from './model/orderModel';

enum Api {
  OrderSync = '/jybOrder/qyOrderSync',
  GetList = '/jybOrder/qyOrderList',
  GetDetail = '/jybOrder/qyOrderDetail',
  OrderReSend = '/jybOrder/qyOrderReNotify',
}

/**
 * @description: Get user menu based on id
 */
export const getDetail = (params: OrderTaskParams) => {
  return defHttp.post({ url: Api.GetDetail, params });
};
export const getList = (params: OrderPageParams) => {
  return defHttp.post({ url: Api.GetList, params });
};

export const orderSync = (params: OrderTaskParams) => {
  return defHttp.post({ url: Api.OrderSync, params });
};

export const orderReSend = (params: OrderTaskParams) => {
  return defHttp.post({ url: Api.OrderReSend, params });
};
